#region Summary

// 
// Owner : JackieHan 
// 
// Solution : UpdateSystem
// 
// Project :Skomart.Update.Test
// 
// File : TestClientConfig.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 测试客户端配置
// 
// History : 
//			2011-01-05 16:42:41    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;
using NUnit.Framework;
//using Skomart.Update.Entities.Client;

#endregion

namespace Skomart.Update.Test
{
	/// <summary> 
	/// 测试客户端配置
	/// </summary>
	[TestFixture]
	public class TestClientConfig
	{
		[SetUp]
		public void SetUp()
		{
			
		}

		[Test]
		public void Test()
		{
            //var configDirctory = @"E:\Skomart\Code\UpdateSystem\Skomart.Update.Test\ConfigFiles";
            //var clientConfig = new UpdateConfigInfo(configDirctory);

            //Assert.AreEqual("backup", clientConfig.BackupPath);
            //Assert.AreEqual("1.0.0.11010502", clientConfig.CurrentVersion);
            //Assert.AreEqual(1, clientConfig.UpdateLogs.Count);
		    
            //var updateLog = clientConfig.UpdateLogs[0];
            //Assert.AreEqual("2011-01-05", updateLog.Date.ToString("yyyy-MM-dd"));
            //Assert.AreEqual("1.0.0.11010501", updateLog.FromVersion);
            //Assert.AreEqual("1.0.0.11010502", updateLog.ToVersion);
            //Assert.AreEqual(1, updateLog.UpdateFiles.Count);
		}

		[TearDown]
		public void TearDown()
		{
		}
	}
}